package com.example.lenovo.singleinstance;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;

/**
 * Created by Lenovo on 2018/10/9.
 */
public class BaseActivity extends Activity{
    @Override
    protected void onCreate(Bundle savedInstanceState){
        super.onCreate(savedInstanceState);
        Log.d("BaseActivity", getClass().getSimpleName());
        ActivityCollector.addActivity(this);
    }
    @Override
    protected void onDestroy(){
        super.onDestroy();
        ActivityCollector.removeActivity(this);
    }
}
